import type { ActionProps } from "~/types/enum";

export enum DictionariesApi {
  GetList = "api/Dictionaries/GetList",
  AddorUpdate = "api/Dictionaries/AddorUpdate",
  CheckName = "api/Dictionaries/CheckName",
  CheckCode = "api/Dictionaries/CheckCode",
  Delete = "api/Dictionaries/Delete",
  Reduction = "api/Dictionaries/Reduction",
  GetDetail = "api/Dictionaries/GetListb",
  GetTreeList = "api/Dictionaries/GetTreeList",
  GetListAll = "api/Dictionaries/GetListd"
}

export class DictionariesAction {
  actionPros: ActionProps = {
    addCode: "DictionariesAdd",
    deleteCode: "DictionariesDelete",
    updateCode: "DictionariesUpdate",
    queryCode: "DictionariesGetList",
    importCode: "",
    exportCode: "DictionariesExport",
    downImportCode: "",
    reductionCode: "DictionariesReduction",
    recyclebinCode: "DictionariesRecyclebin"
  };
}

export interface DictionariesInfo {
  dTypeName: string;
  dName: string;
  dCode: string;
  dParentcode: string;
  dParentName: string;
  dValue: string;
}
